using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(AudioStudio.SliderSound)), CanEditMultipleObjects]
public class SliderSoundInspector : Editor
{
    AudioStudio.SliderSound component;

    void OnEnable()
    {
        component = target as AudioStudio.SliderSound;
    }

    public override void OnInspectorGUI()
    {
        serializedObject.Update();

        EditorGUILayout.PropertyField(serializedObject.FindProperty("ValueChangeRTPC"));
        EditorGUILayout.LabelField("Audio Events:");
        AudioScriptGUI.DrawList(serializedObject.FindProperty("audioEvents"));
        serializedObject.ApplyModifiedProperties();
    }
}